package com.chenyunan;

public class Bus extends MotoVehicle{

    //载客数量
    private int SeatCount;
    Database database;

    Bus(){
        database = new Database();
    }
    public Bus(String nCarType,String nNum,String nColor,String nBrand,int NSeaCount,String nType,
                int nMeleage,int NRentCarMoner){

        super(nCarType,nNum,nColor,nMeleage);
        database = new Database();

        database.add(nCarType,nNum,nColor,nBrand,NSeaCount,nType,nMeleage,NRentCarMoner);
    }

    @Override
    void CarObvious() {
        System.out.println("以下是所以客车车辆信息");
        database.select("客车","CarType");

    }

    @Override
    public Void Calrent(int day) {
        return null;
    }

    public int getSeatCount() {
        return SeatCount;
    }

    public void setSeatCount(int seatCount) {
        SeatCount = seatCount;
    }
}
